package com.hxzy.spring_demo.service;

import com.hxzy.spring_demo.repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.hxzy.spring_demo.entiey.User;

@Component
public class UserService {
	
	@Autowired
	private UserRepository userRepository;
	
	public void saveStudent(User user){
		userRepository.save(user);
	}
}
